package AddonsSheep3.Events;

import AddonsSheepContoller.ASPlayer.ASAccount;
import AddonsSheepContoller.ASPlayer.ASPlayer;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.scheduler.BukkitScheduler;

public class PlayerLoginEvents implements Listener {
    private static boolean loginValid = false;

    @EventHandler
    private void playerJoinLogin(PlayerJoinEvent event) {
        loginValid = false;
        BukkitScheduler requestLoginScheduler = Bukkit.getServer().getScheduler();
        requestLoginScheduler.scheduleAsyncDelayedTask(this, new Runnable() {
            @Override
            public void run() {
                if(loginValid) this.
            }
        }, 60);
    }
}
